<%@ page import="java.util.List" %>
<%@ page import="dao.RecordDao" %>
<%@ page import="dao.impl.RecordDaoImpl" %>
<%@ page import="po.Record" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="resources/css/amazeui.min.css" />
    <link rel="stylesheet" href="resources/css/admin.css" />
</head>
<%
    RecordDao recordDao=new RecordDaoImpl();
    List<Record> records=recordDao.selectRecords();
%>
<body>
<div class="admin-content-body">
    <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">出库记录</strong><small></small></div>
    </div>
    <hr>
    <div class="am-g">
        <div class="am-u-sm-12">
            <form class="am-form">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr>
                        <th class="table-id">编号</th>
                        <th class="table-title">货物名称</th>
                        <th class="table-title">货物类型</th>
                        <th class="table-title">货物数量</th>
                        <th class="table-title">货物价格</th>
                        <th class="table-title">货主</th>
                        <th class="table-title">仓库号</th>
                        <th class="table-title">出库日期</th>
                    </tr>
                    </thead>
                    <%
                        for (Record r : records) {
                    %>
                    <tbody>
                    <tr>
                        <td><%=r.getGoodId()%>
                        </td>
                        <td>
                            <a href="#"><%=r.getGoodName()%>
                            </a>
                        </td>
                        <td>
                            <a href="#"><%=r.getType()%>
                            </a>
                        </td>
                        <td>
                            <a href="#"><%=r.getCount() %>
                            </a>
                        </td>
                        <td>
                            <a href="#"><%=r.getCost() %>
                            </a>
                        </td>
                        <td>
                            <a href="#"><%=r.getShipper() %>
                            </a>
                        </td>
                        <td>
                            <a href="#"><%=r.getWarehouseId() %>
                            </a>
                        </td>
                        <td>
                            <a href="#"><%=r.getExStorage() %>
                            </a>
                        </td>
                    </tr>
                    <%}%>
                    </tbody>
                </table>
                <hr>
            </form>
        </div>
    </div>
</div>
</body>
</html>
